package com.hzh.page.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@AllArgsConstructor
@ToString
/**
 * 权限枚举
 */
public enum RightEnum {

    USER_MANAGE_ADD("添加用户", "/user-manage/add"),
    USER_MANAGE_DELETE("删除用户", "/user-manage/delete"),
    USER_MANAGE_UPDATE("修改用户", "/user-manage/update"),
    USER_MANAGE_LIST("用户列表", "/right-manage/role/list"),
    RIGHT_MANAGE_ROLE_UPDATE("修改角色", "/right-manage/role/update"),
    RIGHT_MANAGE_ROLE_DELETE("删除角色", "/right-manage/role/delete"),
    RIGHT_MANAGE_RIGHT_UPDATE("修改权限", "/right-manage/right/update"),
    RIGHT_MANAGE_RIGHT_DELETE("删除权限", "/right-manage/right/delete"),
    NEWS_MANAGE("新闻管理","/news-manage"),
    NEWS_MANAGE_LIST("新闻列表", "/news-manage/list"),
    NEWS_MANAGE_ADD("撰写新闻", "/news-manage/add"),
    NEWS_MANAGE_UPDATE("新闻更新", "/news-manage/update/"),
    NEWS_MANAGE_PREVIEW("新闻预览", "/news-manage/preview/"),
    NEWS_MANAGE_DRAFT("草稿箱", "/news-manage/draft"),
    NEWS_MANAGE_CATEGORY("新闻分类", "/news-manage/category"),
    AUDIT_MANAGE_AUDIT("审核新闻", "/audit-manage/audit"),
    AUDIT_MANAGE_LIST("审核列表", "/audit-manage/list"),
    PUBLISH_MANAGE("发布管理", "/publish-manage");
    // 权限标题
    private String title;
    // 权限值
    private String route_key;
}
